package com.oop7.dog;

public class DogBite {
	String name;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void bite(Dog d) {
		System.out.println(this.name + "咬了" + d.getName() + "，狗咬狗，一嘴毛。");
	}

	public void bite(CiWei c) {
		System.out.println(this.name + "咬了" + c.getName() + "，无从下口扎了嘴。");
	}

	public void bite(People p) {
		System.out.println(this.name + "咬了" + p.getName() + "，没咬到，反挨了打。");
	}

	public DogBite(String name) {
		setName(name);
	}

}
